################################################################################
#    File: menus.py
#    Created: 4/6/09
#
#    Initial coding by Kyle Corbitt
#
#    Source released under the MIT permissive license. More information
#    available at (http://en.wikipedia.org/wiki/MIT_License).
#
#    Description:    This module of the COR Groundstation suite deals with the
#                    menu structure of the software and redirects events as
#                    necessary.
################################################################################

import wx #used to create all GUI elements

#Menu action definitions
ID_NEW = 101
ID_SAVE = 102
ID_OPEN = 103
ID_IMPORT = 104
ID_EXPORT = 105
ID_SAVE_P = 106
ID_OPEN_P = 107
ID_EXIT = 108

class menuBar(wx.MenuBar):
    def __init__(self):
        wx.MenuBar.__init__(self)
        fileMenu = wx.Menu()
        #fileMenu.Append(ID_NEW, "&New Mission", "Begin a new mission")
        fileMenu.Append(ID_SAVE, "&Save Mission", "Save the active mission")
        fileMenu.Append(ID_OPEN, "&Load Mission", "Open a saved mission")
        fileMenu.AppendSeparator()
        fileMenu.Append(ID_IMPORT, "&Import KML", "Import a set of waypoints from a KML file")
        fileMenu.Append(ID_EXPORT, "&Export KML", "Export the current set of waypoints to a KML file")
        fileMenu.AppendSeparator()
        fileMenu.Append(ID_SAVE_P, "Save &Playback", "Save a file containing archived telemetry data from the flight")
        fileMenu.Append(ID_OPEN_P, "Load Playback", "Load an archived flight playback file")
        fileMenu.AppendSeparator()
        fileMenu.Append(ID_EXIT, "E&xit", "Close the program")

        settingsMenu = wx.Menu()

        self.Append(fileMenu,"&File")
        self.Append(settingsMenu,"&Settings")
